package cn.zcy.springboot_web.result;

public class Result<T> {

    private Integer code;

    private String magse;

    private T data;

    public Result(Integer code, String magse) {
        this.code = code;
        this.magse = magse;
    }

    public Result(Integer code, String magse, T data) {
        this.code = code;
        this.magse = magse;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMagse() {
        return magse;
    }

    public void setMagse(String magse) {
        this.magse = magse;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Result{" +
                "code=" + code +
                ", magse='" + magse + '\'' +
                ", data=" + data +
                '}';
    }
}
